package org.student.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class StuSys_Teacher {

	private int id; // 
	private String teachName; // 
	private Date createDate; // 
	private String sex; // 
	private String address; // 
	private String tel; // 
	private String nation; // 
	private StuSys_Score score ; // 
	private StuSys_Subject subjcet ; // 
	
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	@ManyToOne
	@JoinColumn(name = "scoreID")
	public StuSys_Score getScore() {
		return score;
	}

	public void setScore(StuSys_Score score) {
		this.score = score;
	}
	
	@ManyToOne
	@JoinColumn(name = "subID")
	public StuSys_Subject getSubjcet() {
		return subjcet;
	}

	public void setSubjcet(StuSys_Subject subjcet) {
		this.subjcet = subjcet;
	}

	public String getTeachName() {
		return teachName;
	}

	public void setTeachName(String teachName) {
		this.teachName = teachName;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getNation() {
		return nation;
	}

	public void setNation(String nation) {
		this.nation = nation;
	}

}
